package com.lagou.dockerdemo.service.impl;

import com.lagou.dockerdemo.entity.Tbstudent;
import com.lagou.dockerdemo.mapper.StudentMapper;
import com.lagou.dockerdemo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Tbstudent getById(Integer id) {
        return studentMapper.selectById(id);
    }

    @Override
    public void insert(Tbstudent tbstudent) {
        studentMapper.insert(tbstudent);
    }
}
